import request from '@/utils/request'

// 获取编码目录详细信息
export function editDirectory(id) {
  return request({
    url: '/system/directory/' + id,
    method: 'get',
  })
}

// 新增编码目录
export function addDirectory(data) {
  return request({
    url: '/system/directory/modify',
    method: 'post',
    data
  })
}

// 删除编码目录
export function deleteDirectory(id) {
  return request({
    url: '/system/directory/' + id,
    method: 'delete',
  })
}
// 编码目录查询
export function searchFindCode(query) {
  return request({
    url: '/system/directory/name/find',
    method: 'get',
    params: query
  })
}